#ifndef __LCD12864_H
#define __LCD12864_H

//---?????---//
#include "stc15f2k60s2.h"

//---??????---//
#ifndef uchar
#define uchar unsigned char
#endif

#ifndef uint 
#define uint unsigned int
#endif


//---?????IO?---//
#define LCD12864_DATAPORT P0	  //??IO?

sbit LCD12864_RS  =  P2^5;      //(????)???????    TFT_D10  A8 
sbit LCD12864_RW  =  P2^6;      //???/???               TFT_D8   A9
sbit LCD12864_EN  =  P2^7;      //??????		        TFT_D9   A10



//---??????---//
void LCD12864_Delay1ms(uint c);
uchar LCD12864_Busy(void);
void LCD12864_WriteCmd(uchar cmd);
void LCD12864_WriteData(uchar dat);
void LCD12864_Init();
void LCD12864_ClearScreen(void);
void LCD12864_SetWindow(uchar x, uchar y);

#endif

